<%@ include file="/common/taglibs.jsp"%>

<head>
<title><fmt:message key="interestList.title" /></title>
<meta name="heading" content="<fmt:message key='interestList.heading'/>" />
</head>

<c:set var="buttons">
	<input type="button" style="margin-right: 5px"
		onclick="location.href='<c:url value="/interest/edit.html"/>'"
		value="<fmt:message key="button.add"/>" />

	<input type="button"
		onclick="location.href='<c:url value="/mainMenu.html"/>'"
		value="<fmt:message key="button.done"/>" />
</c:set>

<c:out value="${buttons}" escapeXml="false" />
<s:set name="interests" value="interests" scope="request" />
<display:table name="interests" class="table" requestURI=""
	id="interestList" export="true" pagesize="25">
	<display:column property="id" sortable="true" href="edit.html"
		paramId="id" paramProperty="id" titleKey="interest.id"
		style="width: 10%" />
	<display:column property="name" sortable="true"
		titleKey="interest.name" style="width: 25%" />

	<display:setProperty name="paging.banner.item_name" value="interest" />
	<display:setProperty name="paging.banner.items_name" value="interests" />

	<display:setProperty name="export.excel.filename"
		value="interest List.xls" />
	<display:setProperty name="export.csv.filename"
		value="interest List.csv" />
	<display:setProperty name="export.pdf.filename"
		value="interest List.pdf" />


	<s:iterator value="interests" id="interest">
		<li><display:setProperty name="paging.banner.item_name"
			value="interest" /> <display:setProperty
			name="paging.banner.items_name" value="interests" /></li>
	</s:iterator>
</display:table>
<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    highlightTableRows("interestList");
</script>